import request from '@/utils/request'


// 查询施工攻略图片列表
export function listPicture(query) {
  return request({
    url: '/system/picture/list',
    method: 'get',
    params: query
  })
}

// 查询施工攻略图片详细
export function getPicture(pictureId) {
  return request({
    url: '/system/picture/' + pictureId,
    method: 'get'
  })
}

// 新增施工攻略图片
export function addPicture(data) {
  return request({
    url: '/system/picture/add',
    method: 'post',
    data: data
  })
}

// 修改施工攻略图片
export function updatePicture(data) {
  return request({
    url: '/system/picture',
    method: 'put',
    data: data
  })
}

// 删除施工攻略图片
export function delPicture(pictureId) {
  return request({
    url: '/system/picture/' + pictureId,
    method: 'delete'
  })
}

// 导出施工攻略图片
export function exportPicture(query) {
  return request({
    url: '/system/picture/export',
    method: 'get',
    params: query
  })
}


export function uploadImagepic(data) {
  return request({
    url: '/system/picture/uploadImagepic',
    method: 'post',
    data: data
  })
}

